package org.edu.service.impl;

import java.io.Serializable;
import java.util.List;

import javax.annotation.PostConstruct;

import org.edu.model.RolesSciency;
import org.edu.service.RolesSciencyServices;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

@Controller
public class RolesSciencyController implements Serializable {

	private static final long serialVersionUID = 1L;
	@Autowired
	private transient RolesSciencyServices rolesSciencyServices;
	private RolesSciency rolesSciency;
	private List<RolesSciency> listRolesSciencies;

	public RolesSciencyController(){
		rolesSciency = new RolesSciency();
	}
	@PostConstruct
	public void init(){
		listRolesSciencies = rolesSciencyServices.rolesSciencies();
	}
	
	public RolesSciency getRolesSciency() {
		if(rolesSciency == null)
			rolesSciency = new RolesSciency();
		return rolesSciency;
	}

	public void setRolesSciency(RolesSciency rolesSciency) {
		this.rolesSciency = rolesSciency;
	}

	public List<RolesSciency> getListRolesSciencies() {
		return listRolesSciencies;
	}

}
